package random.fox.p2p.event;

import android.support.annotation.NonNull;
import android.support.v7.widget.Toolbar;

/**
 * Created by wq on 15/3/22.
 */
public class ActionBarEvent {
    final Toolbar toolbar;
    final int menu_layout;
    final boolean lock;

    /**
     *  @param toolbar toolbar 参数不能为null
     * @param menu_layout
     * @param lock
     */
    public ActionBarEvent(@NonNull Toolbar toolbar, int menu_layout, boolean lock) {
        this.toolbar = toolbar;
        this.menu_layout = menu_layout;
        this.lock = lock;
    }

    public Toolbar getToolbar() {
        return toolbar;
    }

    public int getMenu_layout() {
        return menu_layout;
    }

    /**
     * 判断是否需要锁住菜单
     * @return
     */
    public boolean isLock() {
        return lock;
    }
}
